#pragma once
#include <QWidget>

class DetailData;
class DetailQuoteTable;
class SVirtualTable;
class STableColumnSet;
class BondDetailCFETS : public QWidget
{
public:
    BondDetailCFETS(QWidget* p=nullptr);
	~BondDetailCFETS();
    void setDetailData(QSharedPointer<DetailData> data);

protected:
	void paintEvent(QPaintEvent* event) override;

protected slots:
	void onBondChanged();

private:
    void initBestPriceList();
private:
    QSharedPointer<DetailData> m_data = nullptr;
    SVirtualTable* m_bestTable = nullptr;
    STableColumnSet* m_tableSet = nullptr;
	DetailQuoteTable* m_table = nullptr;
};